<div class="search bysid">
	<span>请输入要检索的学号：</span><input class="search_input" type="text" name="bysid"/><button style="margin-top:-10px;" class="btn btn-primary" id="submit_search">检索</button><button style="display:none;margin-top:-10px;" class="btn btn-primary" id="lookDetail">查看详细信息</button>
</div>
<hr>
<div id="bysid_result"></div>
<script>
	var byname=new PureAjax();
	var submit=document.getElementById("submit_search");
	var lookDetail=document.getElementById("lookDetail"); 
	var sid=document.getElementsByName("bysid")[0];
	sid.focus();
	submit.onclick=function(){
		byname.post({
			dataType:"html",
			async:true,
			data:{getsid:sid.value},
			url:URL+"Search/bysid",
			success:function(data){
				byname.dealJSinHTML(data,"bysid_result");
			}
		});
		lookDetail.style.display="inline";
	}
	lookDetail.onclick=function(){
		showDetail(sid.value);
	}
</script>